{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">
    <script src="{% static 'layui/layui.js' %}"></script>
    <script src="{% static 'js/jquery.js' %}"></script>
</head>
<body>
<form class="layui-form" lay-filter="example">
    <div class="layui-form-item">
        <div class="layui-inline">
            <input type="hidden" value="{{ ids }}" name="bookIds">
            <label class="layui-form-label">借阅用户</label>
            <div class="layui-input-inline">
                <select name="userId" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    {% for user in users %}
                        <option value="{{ user.user_id }}">{{ user.user_name }}--{{ user.user_email }}</option>
                    {% endfor %}
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button id="submitBtn" class="layui-btn" lay-filter="demo1">借阅</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script src="{% static 'js/newBooksRecd/edit.js' %}"></script>
</html>